<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加学生</title>

    <style>
        textarea {
            padding: 10px;
            vertical-align: top;
            width: 200px;
        }

        textarea:focus {
            outline-style: solid;
            outline-width: 2px;
        }
    </style>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

</head>
<body style="background: url(${base}/asserts/img/timeer.jpg)">
<div style="text-align: center">
    <form <%--action="${base}/permission/student/add" method="post"--%> id="addstudent" class="addstudent">
        姓名：<input type="text" name="name" required/>
        <br>
        学号：<input type="text" name="studentNumber" id="" value="" required/>
        <br>
        密码：<input type="password" name="password" required/>
        <br>
        生日：<input type="date" name="birthday">
        <br>
        性别：<label for="male">男:</label>
        <input type="radio" id="male" name="gender" value="MALE" required/>
        <label for="female">女：</label>
        <input type="radio" name="gender" id="female" value="FEMALE" required/>
        <br>
            政治面貌：<select name="polity" required>
            <option value="PARTYMEMBER">党员</option>
            <option value="MEMBER">团员</option>
            <option value="INDEPENDENTMEMBER">无党派</option>
            <option value="OTHER">其他</option>
        </select>

            <br>
            简介:<textarea name="brief" style='max-height: 300px; width: 500px;resize: none;'></textarea>
            <br>
            <input type="submit" value="确认"/>
            <input type="button" value="取消" onclick="history.back(-1)"/>

    </form>
    <span id="loginHint" style="color: #ff0000">

</span>
</div>
</body>
<script charset="UTF-8" src="${base}/asserts/js/script.js"></script>
<%--<script src="${base}/js/autosize.js"></script>--%>
<%--<script>
    autosize(document.querySelectorAll('textarea'));
</script>--%>
<script type="text/javascript">
    var base = "${base}";
</script>
</html>
